package blf.librarysystem.Dao;

import blf.librarysystem.Pojo.Reader;
import blf.librarysystem.Pojo.ReaderExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ReaderMapper {
    long countByExample(ReaderExample example);

    int deleteByExample(ReaderExample example);

    int insert(Reader record);

    int insertSelective(Reader record);

    List<Reader> selectByExample(ReaderExample example);

    int updateByExampleSelective(@Param("record") Reader record, @Param("example") ReaderExample example);

    int updateByExample(@Param("record") Reader record, @Param("example") ReaderExample example);


    //自定义的数据库操作
    Reader login(String name,String pwd);

    Reader findByPrimaryKey(@Param("id") Integer id);
}